package org.ns.summer.classpath.scan.io;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import org.ns.summer.classpath.scan.ScanFile;

/**
 * @author 张星宇
 *
 * @email m.vip@qq.com
 *
 * 扫描出来的文件处理流
 */
public class DefaultScanFileIOStreamParse implements ScanFileIOStreamParse{

	@Override
	public InputStream getInputStream(ScanFile scanFile) throws IOException {
		
		return new FileInputStream(scanFile.getAbsolutePath());
	}

	@Override
	public OutputStream getOutputStream(ScanFile scanFile) throws IOException {
		
		return new FileOutputStream(scanFile.getAbsolutePath());
	}

}
